package org.king.util;

import javafx.scene.control.Alert;

public class AlertUtil {
    /**
     * 显示弹窗
     * @param alertType type
     * @param title 标题
     * @param header 错误信息
     * @param content 下一步干什么
     */
    public static void showAlert(Alert.AlertType alertType, String title, String header, String content) {
        Alert alert = new Alert(alertType);
        alert.setTitle(title);
        alert.setHeaderText(header);
        alert.setContentText(content);
        alert.showAndWait();
    }
}
